non negative integer solution